﻿package flash.display {
	/**
	 * @author Jānis Radiņš
	 * Flash player 10 flash.display.GraphicsPathCommand class simulation for sake of forward compability
	 */
	public final class GraphicsPathCommand {
		/**
		 * Specifies a drawing command that draws a curve from the current drawing position to 
		 * the x and y coordinates specified in the data vector, using a control point. 
		 * When executed, this command has the same effect as the Graphics.lineTo() method. 
		 * Uses 2 points in the data vector control & anchor (cx, cy, ax, ay ).
		 */
		public static const CURVE_TO:int = 3;
		/**
		 * Indicates a drawing command that draws a line from the current drawing position to the x and y 
		 * coordinates specified in the data vector. When executed, this command has the same effect as 
		 * the Graphics.lineTo() method. Uses 1 point in the data vector (x,y).
		 */
		public static const LINE_TO:int = 2;
		/**
		 * Indicates a drawing command that moves the current drawing position to the x and y 
		 * coordinates specified in the data vector. When executed, this command has the same effect as 
		 * the Graphics.moveTo() method. Uses 1 point in the data vector (x,y).
		 */
		public static const MOVE_TO:int = 1;
		/**
		 * Represents the default "do nothing" command.
		 */
		public static const NO_OP:int = 0;
		/**
		 * Specifies a "line to" drawing command, but uses two sets of coordinates instead of one. 
		 * Allows switching between "line to" and "curve to" commands without changing the number of 
		 * data values used per command. Uses two points in the data vector: one dummy point and then one (x,y) point.<br>
		 * The WIDE_LINE_TO and WIDE_MOVE_TO command variants consume the same number of parameters as does the CURVE_TO command.
		 */
		public static const WIDE_LINE_TO:int = 5;
		/**
		 * Specifies a "move to" drawing command, but uses two sets of coordinates instead of one. 
		 * Allows switching between "move to" and "curve to" commands without changing the number of 
		 * data values used per command. Uses two points in the data vector: one dummy point and then one (x,y) point.<br>
		 * The WIDE_LINE_TO and WIDE_MOVE_TO command variants consume the same number of parameters as does the CURVE_TO command.
		 */
		public static const WIDE_MOVE_TO:int = 4;
	}
}